package com.dmai.capacity.platform.constants;

public enum ExceptionEnum {

    COMMON(40001, "系统异常"),
    DATA_EXISTS(40002, "记录已存在"),
    PASSWORD_NOT_MATCH(40003, "两次输入密码不一致"),
    ACCOUNT_EXIST(40004, "账号已存在"),

    ACCOUNT_NOT_EXIST(40005, "账号不存在"),

    ACCOUNT_EMAIL_NOT_MATCH(40006, "账号邮箱不一致"),

    VERIFY_CODE_ERROR(40007, "验证码错误"),

    ILLEGAL_AUTH_STATE(40008, "当前状态不允许重复提交"),

    ILLEGAL_OLD_PASSWORD(40012, "原始密码输入有误，请核对后重新输入"),



    LOGIN_AUTHING(40009, "您的申请在审核中"),

    LOGIN_REJECT(40010, "您的注册申请被驳回"),

    FORBIT_REJECT(40011, "该记录已审核通过，不允许驳回"),
    ;

    private Integer code;

    private String errorMsg;

    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.errorMsg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return errorMsg;
    }
}
